package com.xzx.annotation.service;

import com.xzx.annotation.dao.PersonDao;
import org.springframework.stereotype.Service;

import javax.inject.Inject;

/**
 * @author xinzhixuan
 * @version V1.0
 * @date 2018/7/14 19:24
 */
@Service
public class PersonService {

    //@Qualifier("personDao2")
    //@Autowired(required = false)
    //@Resource(name = "personDao2")
    @Inject
    private PersonDao personDao;

    public void printPersonDao() {
        System.out.println(personDao);
    }
}
